.class Lcom/xingbook/park/activity/by;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/xingbook/park/activity/SearchAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/by;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/16 v7, 0x8

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/by;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/SearchAct;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    if-eq v1, v3, :cond_2

    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v5, 0x5

    if-eq v1, v5, :cond_2

    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v5, 0x6

    if-eq v1, v5, :cond_2

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v1, :cond_b

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    instance-of v1, v1, Lcom/xingbook/park/e/c;

    if-eqz v1, :cond_b

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/xingbook/park/e/c;

    :goto_1
    if-eqz v1, :cond_1

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->g()Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_1

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->g()Ljava/lang/String;

    move-result-object v5

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v6

    invoke-virtual {v6}, Lcom/xingbook/park/b/d;->f()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_3

    :cond_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :cond_2
    move-object v1, v2

    :cond_3
    iget v5, p1, Landroid/os/Message;->what:I

    packed-switch v5, :pswitch_data_0

    :cond_4
    :goto_2
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->a()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_2

    :pswitch_1
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->e(Lcom/xingbook/park/activity/SearchAct;)[I

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->n(Lcom/xingbook/park/activity/SearchAct;)I

    move-result v5

    aget v1, v1, v5

    const v5, 0x7fffffff

    if-ne v1, v5, :cond_5

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v1

    invoke-virtual {v1, v4, v2}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    :goto_3
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_7

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    const-string v1, "\u6682\u65f6\u6ca1\u6709\u76f8\u5173\u5185\u5bb9\uff0c\u8bd5\u8bd5\u5176\u4ed6\u68c0\u7d22\u6761\u4ef6\u5427~"

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto :goto_2

    :cond_5
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/park/b/d;->d()I

    move-result v5

    if-ge v1, v5, :cond_6

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v1

    invoke-virtual {v1, v4, v2}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto :goto_3

    :cond_6
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v1

    invoke-virtual {v1, v3, v2}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto :goto_3

    :cond_7
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/xingbook/park/a/w;->a(Ljava/util/ArrayList;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->p(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto/16 :goto_2

    :pswitch_2
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->q(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/TextView;

    move-result-object v2

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "\u52a0\u8f7d\u9519\u8bef:"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v5, "\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto/16 :goto_2

    :pswitch_3
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->q(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/TextView;

    move-result-object v1

    const-string v2, "\u7f51\u7edc\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u540e\u91cd\u8bd5\uff01"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto/16 :goto_2

    :pswitch_4
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->q(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/TextView;

    move-result-object v1

    const-string v2, "\u7528\u6237\u6570\u636e\u52a0\u8f7d\u5931\u8d25\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto/16 :goto_2

    :pswitch_5
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/c/a/o;->a()V

    goto/16 :goto_2

    :pswitch_6
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v4, "\u52a0\u8f7d\u5931\u8d25\uff1a"

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v3, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_2

    :pswitch_7
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_8

    move v1, v3

    :goto_4
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v5

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v7

    invoke-virtual {v7}, Lcom/xingbook/park/b/d;->d()I

    move-result v7

    if-lt v6, v7, :cond_9

    :goto_5
    invoke-virtual {v5, v3, v2}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    if-eqz v1, :cond_a

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/xingbook/park/a/w;->b(Ljava/util/ArrayList;)V

    goto/16 :goto_2

    :cond_8
    move v1, v4

    goto :goto_4

    :cond_9
    move v3, v4

    goto :goto_5

    :cond_a
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/w;->g()Z

    move-result v1

    if-nez v1, :cond_4

    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    const-string v1, "\u6682\u65f6\u6ca1\u6709\u76f8\u5173\u5185\u5bb9\uff0c\u8bd5\u8bd5\u5176\u4ed6\u68c0\u7d22\u6761\u4ef6\u5427~"

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_2

    :pswitch_8
    invoke-static {v0}, Lcom/xingbook/park/activity/SearchAct;->a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    const-string v1, "\u7f51\u7edc\u8fde\u63a5\u5931\u8d25"

    invoke-virtual {v0, v3, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_2

    :cond_b
    move-object v1, v2

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_7
        :pswitch_6
        :pswitch_8
    .end packed-switch
.end method
